<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class AdvertiserVideo extends Model
{
    protected $table = 'advertiser_video';

    const LABEL = [
        100 => '色情',
        110=>'性感低俗',
        200=>'广告',
        210=>'二维码',
        260=>'广告法',
        300=>'暴恐',
        400=>'违禁',
        500=>'涉政',
        600=>'谩骂',
        700=>'灌水',
        800=>'恶心类',
        900=>'其他',
        1020=>'黑屏',
        1030=>'挂机',
        1050=>'噪音',
        1100=>'涉价值观',
    ];

    // 允许所有字段批量赋值
    protected $guarded = [];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function advertiser()
    {
        return $this->hasOne(Advertiser::class, 'account_id', 'account_id');
    }
}
